To use this platexmkrc for for typsetting a .dtx file place the line

% !TEX TS-program = pdflatexmk

directly after the first line of the dtx document,

% \iffalse meta-comment

and you can add the line

% !TEX parameter = --shell-escape

after that if you need shell escape.

